    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head>  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
    <title>梦之旅google地图</title>  
    </head>  
      
    <body onload="initialize()">  
    <div id="map_canvas" style="width : <{$widthpx}>px; height : <{$heightpx}>px;"></div>  
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>   
    <script type="text/javascript">  
    var map;  
    var marker;  
    var infowindow;  
    var geocoder;  
    var markersArray = [];  
    function initialize() {  
      geocoder = new google.maps.Geocoder();  
      var myLatlng = new google.maps.LatLng(<{$zbz}>);  
      var myOptions = {  
        zoom: 13,  
        center: myLatlng,  
        navigationControl: true,  
        streetViewControl: true,  
        panControl: true, //方向盘  
        scaleControl: true, //比例尺  
        mapTypeControl: false, //可以选的地图类型，下面是配置  
        streetViewControl:false,//街头小人  
        zoomControl: true, //放大按钮，下面是配置  
        mapTypeId: google.maps.MapTypeId.ROADMAP,  
          
          
      }  
      map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);  
      placeMarker(myLatlng);//标标出来
	  
    }  
        
      
    function placeMarker(location) {  
      clearOverlays(infowindow);  
      var clickedLocation = new google.maps.LatLng(location);  
      marker = new google.maps.Marker({  
          position: location,  
          ico:"http://maps.gstatic.com/mapfiles/ridefinder-images/mm_20_red.png",  
          title:"<{$hname}>",  
          map: map  
      });  
      markersArray.push(marker);  
      
      //map.setCenter(location);  
      var point = location.lat() + "," + location.lng();  
    }  
      
     function clearOverlays(infowindow) {  
        if (markersArray) {  
          for (i in markersArray) {  
            markersArray[i].setMap(null);  
          }  
          markersArray.length = 0;  
        }  
        if (infowindow){  
            infowindow.close();  
        }  
      }  
      
      
    function setlocation(location, title) {  
                      map.setCenter(location);  
                      marker = new google.maps.Marker({  
                          map: map,  
                          position: location,  
    title: title  
                      });  
      }  

    </script>  
   
    </body>  
    </html>  

